<?php

namespace Medicina\BackendBundle\Form;

use Symfony\Component\Form\FormBuilder;
use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType;

class PerfilType extends BaseType {

    public function buildForm(FormBuilder $builder, array $options) {
        parent::buildForm($builder, $options);

        // add your custom field
        $builder
                ->add('dni')
                ->add('apellido')
                ->add('nombre')
                ->add('email')
                ->add('telefono')
                ->add('direccion')
                ->add('codigopostal', 'text', array('label' => 'Codigo Postal'))

        ;
    }

    public function getName() {
        return 'backend_user_perfil';
    }

}